#include <dml/dml.h>
#include <extensions/gldml.h>
#include "engine.h" 
/*

Class : Player
Date : 11/7/2008 
Description :
    This is the object player with functions: init, update, and draw.

*/



class player
{
    private:
    float x,y,z;            //positie
    float max_y;            //maximale bewegingsvrijheid op de y-as
    float speed;            //snelheid vliegtuigje
    int life;               //leven
    int numlifes;           //num lives
	int key,key_trig;       //input player
	float oldy;             //beginwaarde y word opgeslagen voor de controlle bij functie check..
    
    public:
    int textureid;
    s_mesh model;
    
    void init(float _x, float _y, float _z, int _numlifes, float _max_y,float _speed);
    int update();
    void draw();
    void gameover();
    float get_playerx();
    float get_playery();
    float get_playerz();
};
